package cn.bone.demo.quartz;

import com.google.gson.Gson;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * Created by MD-01 on 2016/10/10.
 */
public class HelloJob implements Job{

    private Logger log = LogManager.getLogger("任务");
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        log.info("执行任务");
        log.info(context.getClass());
        //Gson gson = new Gson();
        //log.info(gson.toJson(context));
        log.info(context);

    }
}
